﻿#include "FITKAbaProfileRectangular.h"


Interface::FITKAbaProfile::FITKAbaProfileShape Interface::FITKAbaProfileRectangular::getShape() const
{
    return FITKAbaProfile::FITKAbaProfileShape::Rectangular;
}

bool Interface::FITKAbaProfileRectangular::copy(FITKAbstractDataObject *obj)
{
    FITKAbaProfileRectangular* rect = dynamic_cast<FITKAbaProfileRectangular*>(obj);
    if (rect == nullptr)
        return false;
    this->setDataObjectName(rect->getDataObjectName());
    m_a = rect->m_a;
    m_b = rect->m_b;
    return true;
}

double Interface::FITKAbaProfileRectangular::getA() const
{
    return m_a;
}

void Interface::FITKAbaProfileRectangular::setA(double value)
{
    m_a = value;
}

double Interface::FITKAbaProfileRectangular::getB() const
{
    return m_b;
}

void Interface::FITKAbaProfileRectangular::setB(double value)
{
    m_b = value;
}
